package ZooManagementSystem2.ZooCollection;

import ZooManagementSystem2.ZooEntity.User;

public class ParkKeeperCollection extends UserCollection{

    private ParkInfo parkBelongTo;

    //这个园区动物的类别（陆生，水生。。。）
    private String zooName;

    public String getZooName() {
        return zooName;
    }

    public void setZooName(String zooName) {
        this.zooName = zooName;
    }

    public ParkInfo getParkBelongTo() {
        return parkBelongTo;
    }

    public void setParkBelongTo(ParkInfo parkBelongTo) {
        this.parkBelongTo = parkBelongTo;
    }


    public String diplayAllKeepers(){
        String displayMessageString="";
        displayMessageString=this.zooName+" "+this.parkBelongTo.getParkName()+" ";

        for(User current:userList){
            displayMessageString=displayMessageString+" "+current.getUserName();
        }
        return displayMessageString;
    }
}
